import service,{ baseURL } from './index';
import { IAvatarParams } from '../type';

export const file = {
  changeAvatarUrl: `${baseURL}/file/updateAvatar`,
  changeAvatar: (data: IAvatarParams) => {
    return service({
      url: `/file/updateAvatar`,
      method: 'post',
      data,
    });
  },
}